import os
"""
路径封装复用性较高 值得做成方法被调用
"""
BASE_DIR=os.path.dirname(os.path.dirname(__file__))

def yaml_file(yaml_name):
    yaml_dir=os.path.join(BASE_DIR,'datas')
    yaml_file=os.path.join(yaml_dir,yaml_name)
    return yaml_file

# 封装日志路径
LOGER_DIR=os.path.join(BASE_DIR,"logs")
INFO_DIR=os.path.join(LOGER_DIR,'info_logs')
ERROR_DIR=os.path.join(LOGER_DIR,'error_logs')
# 封装allure路径
REPORT_DIR=os.path.join(BASE_DIR,'reports')
REPORT_HTML=os.path.join(REPORT_DIR,'allure_html')
REPORT_JSON=os.path.join(REPORT_DIR,'allure_json')
# print(REPORT_JSON)
# print(REPORT_HTML)

# 封装case存放路径
CASE_FILE=os.path.join(BASE_DIR,'testcase')

